if (attributes->wclass == GDK_INPUT_OUTPUT)
{
window->input_only = FALSE;
- window->depth = window->visual->depth;
}
else
{
- window->depth = 0;
window->input_only = TRUE;
}
impl->window_scale = x11_screen->window_scale;
window->window_type = GDK_WINDOW_ROOT;
- window->depth = DefaultDepthOfScreen (x11_screen->xscreen);
window->x = 0;
window->y = 0;
unsigned int class;
const char *title;
+ int depth;
display_x11 = GDK_X11_DISPLAY (display);
xparent = GDK_WINDOW_XID (real_parent);
impl->override_redirect = TRUE;
}
+
+ depth = visual->depth;
}
else
{
class = InputOnly;
+
+ depth = 0;
}
if (window->width * impl->window_scale > 32767 ||
(window->x + window->parent->abs_x) * impl->window_scale,
(window->y + window->parent->abs_y) * impl->window_scale,
window->width * impl->window_scale, window->height * impl->window_scale,
- 0, window->depth, class, xvisual,
+ 0, depth, class, xvisual,
xattributes_mask, &xattributes);
g_object_ref (window);
win->state = 0;
win->viewable = TRUE;
- win->depth = attrs.depth;
-
g_object_ref (win);
_gdk_x11_display_add_window (display, &GDK_WINDOW_XID (win), win);